<?php if (!defined('THINK_PATH')) exit();?><html>
    <head>
        <title><?php echo ((isset($meta_title) && ($meta_title !== ""))?($meta_title):"XCall"); ?>-后台管理系统</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="/Public/Css//cssreset-min.css" rel="stylesheet" type="text/css"/>
        <link href="/Public/Jquery/jquery-ui-1.11.4/start/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
        <link href="/Public/Jquery/jquery-ui-1.11.4/start/jquery-ui.soui.css" rel="stylesheet" type="text/css"/>
        <link href="/Public/Jquery/superfish/css/superfish-so.min.css" rel="stylesheet" type="text/css"/>
        <link href="/Public/Theme/Crm/Default/style.min.css" rel="stylesheet" type="text/css"/>
        <script src="/Public/Jquery/jquery-1.11.2.min.js" type="text/javascript"></script>
        <script src="/Public/Jquery/jquery-ui-1.11.4/jquery-ui.min.js" type="text/javascript"></script>
        <script src="/Public/Jquery/formFill/jquery.formFill.min.js" type="text/javascript"></script>
        <script src="/Public/Jquery/superfish/js/superfish.min.js" type="text/javascript"></script>
        <script src="/Public/Jquery/jquery-validation-1.13.1/dist/jquery.validate.min.js" type="text/javascript"></script>
        <script src="/Public/Jquery/jquery-validation-1.13.1/dist/localization/messages_zh.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="/Public/Jquery//kindeditor-4.1.10/kindeditor-min.js"></script>
        <script src="/Public/Jquery/soui-3.0/sojq-plugins.min.js" type="text/javascript"></script>
        <script src="/Public/Jquery/soui-3.0/page-event-handler.min.js" type="text/javascript"></script>
        <script src="/Public/Jquery/soui-3.0/jqui-init.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            // 页面入口 2014-6-11 by sutroon
            $(function () {
                soui_init3();
                bind_event_handler();
                /*
                 var dialog1 = $('<div>test1</div>').dialog({position: {my: "right top", at: "right top"}, dialogClass: "alert", show: {
                 effect: "blind",
                 duration: 1000
                 },
                 hide: {
                 effect: "explode",
                 duration: 1000
                 }});
                 
                 setTimeout(function () {
                 dialog1.dialog('close')
                 }, 3000);
                 */
            });
        </script>
    </head>
    <body>
        <div id="head">
            <!-- Logo -->
            <div id="logo" class="col1"><p><a href="<?php echo U('Index/index');?>">XCall</a><small>用心、专业、高效的呼叫中心系统</small></p></div>
            <!-- /Logo -->
            <div class="col2">
                <!-- 公告内容 -->
                <div id="head-notice">
                    <div class="notices-panel" style="display: none;">
                        <p>这里是滚动公告内容</p>
                        <p>这里是滚动公告内容</p>
                        <p>这里是滚动公告内容</p>
                    </div>
                </div>
                <!-- /公告内容 -->
                <!-- 主导航菜单 -->
                <div id="main-nav">
                    <ul class="sf-menu">
                        <?php if(is_array($main_nav)): foreach($main_nav as $key=>$vo): if(is_numeric($key)): $key=$key+1; endif; ?><li><a href="#" onclick="return false;"><?php echo ($vo["name"]); ?></a>
                                <ul>
                                    <?php if(is_array($vo['sub'])): foreach($vo['sub'] as $key=>$vo2): if(is_numeric($key)): $key=$key+1; endif; if(is_array($vo2['sub'])): foreach($vo2['sub'] as $key=>$vo3): if(is_numeric($key)): $key=$key+1; endif; ?><li><a href="<?php echo ($vo3["link_url"]); ?>" data-id="<?php echo ($vo3["id"]); ?>"><?php echo ($vo3["name"]); ?></a></li><?php endforeach; endif; endforeach; endif; ?>
                                </ul>
                            </li><?php endforeach; endif; ?>
                    </ul>
                </div>
                <!-- /主导航菜单 -->
            </div>
            <div class="col3">
                <div id="head-clock" title="so clock">32:33</div>
                <!-- 用户栏 -->
                <div id="user_bar">
                    <ul class="sf-menu">
                        <li><a href="#">你好，<em title="<?php echo session('user_auth.username');?>"><?php echo session('user_auth.username');?>admin</em></a>
                            <ul>
                                <li><a href="<?php echo U('User/syssetting');?>">系统设置</a></li>
                                <li><a href="<?php echo U('User/updatePassword');?>">修改密码</a></li>
                                <li><a href="<?php echo U('User/updateNickname');?>">修改昵称</a></li>
                                <li><a href="<?php echo U('Login/logout');?>">退出</a></li>
                            </ul>
                        </li>
                        <li><a href="#">帮助</a>
                            <ul>
                                <li><a href="<?php echo U('User/updatePassword');?>">帮助</a></li>
                                <li><a href="<?php echo U('User/updateNickname');?>">授权</a></li>
                                <li><a href="<?php echo U('Index/feedback');?>">反馈</a></li>
                                <li><a href="<?php echo U('Index/about');?>" class="lnk-edit">关于</a></li>
                            </ul>
                        </li>
                        <li><a href="#" onclick="return false;">足迹</a>
                            <ul>
                                <?php if(is_array($visit_history)): foreach($visit_history as $key=>$vo): if(is_numeric($key)): $key=$key+1; endif; ?><li><a href="<?php echo ($vo); ?>"><?php echo ($key); ?></a></li><?php endforeach; endif; ?>
                            </ul>
                        </li>
                    </ul>
                </div>
                <!-- /用户栏 -->    
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>
        <div id="main-body">
            <?php echo ($_breadcrumb); ?>
            
<div class="main-title"><h2><?php echo ($meta_title); ?></h2></div>
<form method="post" action="<?php echo U('SiteConfig/siteconfig_edit_save');?>" enctype="multipart/form-data" id="frm-edit">
    <table class="table-form">
        <tr>
            <th>网站名称：</th><td><input type="text" name="site_name" value="<?php echo ($data["site_name"]); ?>" required/></td>
        </tr>
        <tr>
            <th>ICP备案号：</th><td><input type="text" name="icp_license_code" value="<?php echo ($data["icp_license_code"]); ?>" required/></td>
        </tr>
        <tr>
            <th>网站Logo：</th><td><a href="/Uploads/Logo/2015-03-27/55151a96e62e8.jpg" title="/Uploads/Logo/2015-03-27/55151a96e62e8.jpg" target="_blank"><img src="/Uploads/Logo/2015-03-27/55151a96e62e8.jpg" alt="/Uploads/Logo/2015-03-27/55151a96e62e8.jpg" style="width: 60px; height: 60px;"></a><input type="file"  name="logo_url" style="display: none;"/><a href="#" onclick="if($(this).text()=='[更换]'){$(this).text('[取消]').prev().show().prev().hide();}else{$(this).text('[更换]').prev().hide().prev().show();};return false;">[更换]</a></td>
        </tr>
        <tr>
            <th valign="top">网站状态：</th><td class="input-group"><input type="radio" name="state" value="0" name="state" required="required" />待审核 <input type="radio" name="state" value="1" checked="checked" name="state" required="required" />营业中 <input type="radio" name="state" value="4" name="state" required="required" />关停 <br />
        <textarea name="closed_announcement" cols="90" rows="3" style="display: none; margin-top:5px;"><?php echo ($data["closed_announcement"]); ?></textarea></td>
        </tr>
    </table>
    <input type="hidden" name="id" value="<?php echo ($data["id"]); ?>" />
    <button type="submit">保存</button><button type="reset">重置</button>
</form>
<script src="/Public/Theme/Crm/Default/Script/SiteConfig/siteconfig-edit.js" type="text/javascript"></script>
        </div>
        <!-- 底部版权 -->
        <div class="cont-ft">
            <div class="cont-ft-main">
                <div class="flt">
                    <ul class="sf-menu">
                        <li><a href="#" onclick="return false">工具箱</a>
                            <ul>
                                <li><a href="###" data-id="0">计算器</a></li>
                                <li><a href="http://www.baidu.com" target="_blank">百度搜索</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div class="copyright frt" style="margin:6px 10px 0px 20px;"> ©2015 <a href="http://www.0592call.com">0592call.com</a> 版权所有 <a href="#" title="关闭" onclick="return toggle_content('.cont-ft-alt', '.cont-ft-main')">&times</a></div>
                <div class="clearfix"></div>
            </div>
            <div class="cont-ft-alt hidden"><a href="#" title="展开" onclick="return toggle_content('.cont-ft-main', '.cont-ft-alt')">&larr;</a></div>
        </div>
        <!-- /底部版权 -->
        <!-- 全局变量 -->
        <input type="hidden" id="hidval_upload_handler" value="<?php echo U('UploadHandler/kindeupload');?>" />
        <input type="hidden" id="hidval_region_api" value="<?php echo U('Region/json');?>" />
        <!-- /全局变量 -->
        <script type="text/javascript">
            $('.notices-panel').marqueeLeft({speed: 40, width: '500px', hide: true});
            /**
             * 切换显示内容
             * @param {string} show 要显示的内容选择器
             * @param {string} hide 要隐藏的内容选择器
             * @returns {Boolean}
             * @since 1.0 2015-3-16 by sutroon
             */
            function toggle_content(show, hide) {
                $(show).show();
                $(hide).hide();
                return false;
            }
            // clock 2015-3-17 by sutroon
            setInterval('clock()', 1000);
        </script>
    </body>
</html>